//引入pinia
import { defineStore } from "pinia";
import { reactive, ref } from "vue";

//通过 defineStore 创建的一个 store
export const uselangStore = defineStore('lang', () => {
  //一个异步函数，用于执行获取 API 请求
  const lang =ref('zhCn')
  const changelang = (bool) => {
   lang.value=bool
  }
  return { changelang, lang, }
});